home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7829 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.9 KB

  1. Path: newsfeed.gsfc.nasa.gov!usenet
  2. From: Mike Stark <michael.e.stark@gsfc.nasa.gov>
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: 19 Feb 1996 16:57:57 GMT
  6. Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
  7. Message-ID: <4gaa6l$8mk@post.gsfc.nasa.gov>
  8. References: <4etcmm$lpd@nova.dimensional.com>    <4f4ptt$a1c@newsbf02.news.aol.com> <4g1b7n$l5@mailhub.scitec.com.au> <JSA.96Feb16135027@organon.com>
  9. NNTP-Posting-Host: fdf-int-sser.gsfc.nasa.gov
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Macintosh; I; 68K)
  14. X-URL: news:JSA.96Feb16135027@organon.com
  15.  
  16. jsa@organon.com (Jon S Anthony) wrote:
  17. >In article <4g1b7n$l5@mailhub.scitec.com.au> ramsesy@rd.scitec.com.au (Ramses Youhana) writes:
  18. >
  19. >> You'll be surprised how easily both junior (and senior) engineers can turn
  20. >> both C/C++ and Ada programs into spaghetti code.  The language itself
  21. >> doesn't make for a quality system.
  22. >
  23. >Yes, but there are degrees of ease with which this can be done.  I think
  24. >that was more to the point.
  25. >
  26. >
  27. >> Didn't NASA loose a satelite due to a bug in a piece of Ada code?
  28. >
  29. >I don't think so.  I believe that the only confirmed case of a probe
  30. >loss due to software was a Venus probe which had Fortran code (the
  31. >problem was a "lexical" error concerning spaces not acting as lexical
  32. >separators).  The recent Mars probe that "vanished" was (last I saw)
  33. >thought to have been lost due to a small rupture in one of the on board
  34. >tanks.  This caused the ship to go into uncontrolled tumbling.  I don't
  35. >know what it was programmed with.
  36. >
  37. >/Jon
  38. >-- 
  39. >Jon Anthony
  40. >Organon Motives, Inc.
  41. >1 Williston Road, Suite 4
  42. >Belmont, MA 02178
  43. >
  44. >617.484.3383
  45. >jsa@organon.com
  46. >
  47.  
  48. Folks --
  49.  
  50. The mere fact that Ada (or any other language) is used for a satellite does not
  51. guarantee that the software is reliable enough -- there is far more to engineering
  52. flight qualified software.  That being said, I would prefer a language that can
  53. use exception handling to recover from anomalies such as bit flips caused by
  54. cosmic rays, and that doesn't allow unrestricted address arithmetic to 
  55. (potentially) store data into the code currently in memory.  Ada isn't the only
  56. language designed for high reliability (Java and Eiffel leap to mind), but if I
  57. were a satellite project manager I would certainly prefer it to C or C++.
  58.  
  59. Mike
  60.  
  61. -----------------------------------------------------------------------
  62. Michael Stark                                     NASA/GSFC                                           
  63. Phone: (301) 286-5048                             Code 552
  64. Fax:   (301) 286-0245                             Greenbelt, MD 20771
  65. e-mail: michael.e.stark@gsfc.nasa.gov
  66. "I don't give them hell.  I tell the truth and they THINK it's hell!"
  67.     -- Harry S. Truman
  68. -----------------------------------------------------------------------
  69.  
  70.  
  71.